﻿using IGS.Core.Systems;

namespace IGS.Core.Integrators
{
    public class ForwardEulerIntegrator : BaseIntegrator
    {
        public override void Predict(IInteractable body, double dt)
        {
            body.Position = body.LastPosition + dt * body.LastVelocity;
            body.Velocity = body.LastVelocity + dt * body.Acceleration;
        }

        public override void Correct(IInteractable body, double dt)
        {
        }
    }
}